﻿namespace SmartideRepoList.Utils
{
    public class ApiUtil
    {
        public async Task<string> GetProjects(IConfiguration configuration)
        {
            using HttpClient client = new HttpClient();
            using var json = await client.GetAsync(configuration.GetSection("Smartide:Api").Value);
            return await json.Content.ReadAsStringAsync();
        }
    }
}
